package com.shensi.api.admin.client.monitor;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.system.SysLogininfor;
import com.shensi.common.core.annotation.Log;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.enums.BusinessType;
import com.shensi.common.core.page.TableDataInfo;
import com.shensi.common.core.utils.poi.ExcelUtil;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface SysLogininforClient {

    @GetMapping("/monitor/logininfor/list")
    public TableDataInfo list(@SpringQueryMap SysLogininfor logininfor);

    @GetMapping("/monitor/logininfor/export")
    public AjaxResult export(@SpringQueryMap SysLogininfor logininfor);


    @DeleteMapping("/monitor/logininfor/{infoIds}")
    public AjaxResult remove(@PathVariable("infoIds") Long[] infoIds);


    @DeleteMapping("/monitor/logininfor/clean")
    public AjaxResult clean();

    @PostMapping("/monitor/logininfor/insert")
    public void insertLogininfor(@RequestBody SysLogininfor logininfor);
}
